<template>
  <!--这是网页头部-->
  <div style="height: 50px; line-height: 50px; border-bottom: 1px solid #ccc; display: flex">
    <div style="width: 300px; padding-left: 30px; font-weight: bold; color: dodgerblue">工程资料管理系统——四季花园二期项目</div>
    <div style="flex: 1">

    </div>
    <div style="width: 100px">
      <el-dropdown>
    <span class="el-dropdown-link" style="margin-top: 10px; margin-right: 20px">

      <el-icon class="el-icon--right">
        <arrow-down/>
      </el-icon>
    </span>
        <template #dropdown>
          <el-dropdown-menu>
            <!--<el-dropdown-item>基本信息</el-dropdown-item>-->
            <el-dropdown-item @click="exit">退出登录</el-dropdown-item>
          </el-dropdown-menu>
        </template>
      </el-dropdown>

    </div>
  </div>
</template>

<script>
import request from "@/utils/request";
import FileManagement from "@/views/FileManagement";

export default {
  name: "HeaderUserPage",
  components: {FileManagement},
  data() {
    return {

    }

  },
  methods: {
    exit() {
      request.post('/api/exit').then(
          this.skip('/')
      )
    },
    skip(url) {
      alert(url)
      this.$router.push({path: url});
    }
  },

}

</script>


<style scoped>

</style>